{include file="header.html"}
<link href="/style/forum.css" rel="stylesheet" type="text/css" />
<div class="fmain">
    <div class="fsearch">
        <form method="get" action="/forum/">
            <input type="search" name="key" x-webkit-speech speech/>
            <a href="javascript:;" onclick="$(this).parent().submit();" class="likebutton"><img src="/images/search.png"/>搜贴</a>
            <a href="/forum/post" class="likebutton"><img src="/images/folder_new.png"/>我要发帖</a>
        </form>
        <div class="ftable">
            <table>
                <tr><th>主题</th><th width="200px">作者</th><th width="50px">回复</th><th width="50px">阅读</th><th width="155px">发表日期</th></tr>
                {foreach from=$posts item=v}
                <tr class="each"><td><a href="/forum/each?id={$v.id}">{$v.title}</a></td><td>{$v.u.username}({$v.u.realname})</td><td>{$v.reply}</td><td>{$v.read}</td><td>{$v.createtime}</td></tr>
                {/foreach}
            </table>
        </div>
        <div class="paging">
            {$paging}
        </div>
    </div>
</div>  
<script>
    {if !empty($js_set)}
    var js_set = {$js_set};
    {/if}
</script>
{literal}
<script>
</script>
{/literal}
{include file="footer.html"}